# -*- coding: utf-8 -*-
import configparser


class Config:
    def __init__(self):
        pass

    # 获取配置文件信息
    @staticmethod
    def getConfig(section, key, path='config.ini'):
        config = configparser.ConfigParser()
        config.read(path)  # 配置文件的路径
        v = config.get(section, key)
        return v
